<%@ page language="java" import="java.util.*, java.text.*,java.sql.Timestamp,com.zjut.zs.util.tools.*,com.zjut.an.util.tools.*,com.zjut.an.util.system.*,com.zjut.zs.userinfo.manager.*, com.zjut.zs.userinfo.dao.*,
com.zjut.zs.file.dao.*,com.zjut.zs.file.manager.*, com.zjut.zs.file.dao.*,com.zjut.zs.coname.manager.*, com.zjut.zs.exvalue.manager.*, com.zjut.zs.exvalue.dao.*,
com.zjut.zs.user.manager.*, com.zjut.zs.user.dao.*,com.zjut.zs.zxlb.manager.*, com.zjut.zs.zxlb.dao.*,com.zjut.zs.school.manager.*, com.zjut.zs.school.dao.*,
com.zjut.zs.hjqk.manager.*, com.zjut.zs.hjqk.dao.*,com.zjut.zs.shhd.manager.*, com.zjut.zs.shhd.dao.*,com.zjut.zs.xy.manager.*,com.zjut.zs.xy.dao.*,
com.zjut.zs.userstatus.manager.*, com.zjut.zs.userstatus.dao.*,com.zjut.an.config.manager.*, com.zjut.an.config.dao.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">  
<meta name="renderer" content="webkit"> 
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/plugins/webupload/css/upload/upload.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/plugins/webupload/plugin/ueditor/third-party/webuploader/webuploader.css">	
<link rel="stylesheet" href="js/pop/my_popup.css">			
<script type="text/javascript" src="../plugins/assets/plugins/jquery-3.5.1.min.js"></script>
<script src="<%=request.getContextPath() %>/plugins/webupload/plugin/ueditor/third-party/webuploader/webuploader.min.js"></script>
<script type="text/javascript" src="js/pop/my_popup.js"></script>
<style type="text/css">
<!--
body {
	background:#eee;
}
.select1 {
	border:1px solid #ccc;
	padding:8px;
	width:200px;
}
#zxtable td{
	height:30px;
    border:1px solid #ccc;
}
.filediv {
	width:200px;
	float:left;
	text-align: center;
	padding:0px;
	line-height:20px;
}
.file {
	width:200px;
	text-align: center;
	padding:0px;
}
.imgtable img {
	margin:0px;
}
.formbody {
	width:95%;
	margin:10px;
	border:solid 1px #eee;
	background:#fff;
}
.redtable {
	background:#ffe6e6;
}
.forminfo li i {
display:block;
width:800px;
}
-->
</style>
</head>

<body>
<jsp:include page="zs_uservalidate.jsp" flush="true"/>
<%
if (session.getAttribute("zsUser") == null&&session.getAttribute("admin") == null&&session.getAttribute("user") == null) {
	out.print("<script>alert('由于长时间未操作，系统已经自动注销，请重新登陆');</script>");
	out.print("<script>top.window.location='main.jsp';</script>");
} else {
ZsSchoolManager zsManager = (ZsSchoolManager) SpringContextUtil.getBean("ZsSchoolManager");
ZsExValueManager emanager = (ZsExValueManager) SpringContextUtil.getBean("ZsExValueManager");
ZsCoNameManager comanager = (ZsCoNameManager) SpringContextUtil.getBean("ZsCoNameManager");
ZsFileManager fmanager = (ZsFileManager) SpringContextUtil.getBean("ZsFileManager");
AnConfigManager anconfig = (AnConfigManager) SpringContextUtil.getBean("AnConfigManager");
ZsHTMLCreat html = (ZsHTMLCreat) SpringContextUtil.getBean("ZsHTMLCreat");
ZsZxlbManager zmanager = (ZsZxlbManager) SpringContextUtil.getBean("ZsZxlbManager");
ZsHjqkManager jmanager = (ZsHjqkManager) SpringContextUtil.getBean("ZsHjqkManager");
ZsShhdManager hmanager = (ZsShhdManager) SpringContextUtil.getBean("ZsShhdManager");
ZsUserManager umanager = (ZsUserManager) SpringContextUtil.getBean("ZsUserManager");
ZsUserinfoManager uimanager = (ZsUserinfoManager) SpringContextUtil.getBean("ZsUserinfoManager");
ZsXyManager xmanager = (ZsXyManager) SpringContextUtil.getBean("ZsXyManager");
ZsUserStatusManager smanager = (ZsUserStatusManager) SpringContextUtil.getBean("ZsUserStatusManager");
StringBuffer zxstring = new StringBuffer();
ZsSchool school = new ZsSchool();
school = (ZsSchool)zsManager.getDataByInstance(1,1,null,null,school).getObjects().get(0);
ZsZxlb zxlb = new ZsZxlb();
ZsUser user = null;
ZsFile file = new ZsFile();
ZsExValue exv = new ZsExValue();
ZsUserinfo userinfo = new ZsUserinfo();
ZsXy xy = new ZsXy();

String filelocalview = anconfig.getSingleConfigInfoByName("材料本地浏览");
if((session.getAttribute("admin")!=null||session.getAttribute("user")!=null) && request.getParameter("usId")!=null) {
	String usId = request.getParameter("usId");
	user = umanager.getData(usId);
} else if (session.getAttribute("zsUser")!=null) {
	user = (ZsUser)session.getAttribute("zsUser");	
}	
String key = MD5.toMD5(user.getUsId().toString());
String url = "&usId="+user.getUsId();

if (user!=null) {
	exv.setZsUser(user);										
	List list = emanager.getDataByInstance(1,1,null,null,exv).getObjects();
	if (list.size()>0) {
		exv = (ZsExValue)list.get(0);
	}
	xy.setZsUser(user);										
	list = xmanager.getDataByInstance(1,1,null,null,xy).getObjects();
	if (list.size()>0) {
		xy = (ZsXy)list.get(0);
	}
	userinfo.setZsUser(user);										
	list = uimanager.getDataByInstance(1,1,null,null,userinfo).getObjects();
	if (list.size()>0) {
		userinfo = (ZsUserinfo)list.get(0);
	}
}
boolean send = true;
ZsUserStatus userStatus = smanager.getDataByUser(user);
boolean zxlbedit=false;//允许编辑
//补充信息开启，专项类别填写开启并且用户未提交或者被退回
if(Status.ON.getStatus().equals(school.getScAppActive())&&Status.ON.getStatus().equals(school.getScZxlbActive())&&(Status.APPSTATUS_NULL.getStatus().equals(userStatus.getAppStatus()) || Status.APPSTATUS_NO.getStatus().equals(userStatus.getAppStatus()) || Status.APPSTATUS_NOTIME.getStatus().equals(userStatus.getAppStatus())))zxlbedit=true;
boolean fileedit=false;//允许编辑
if(Status.ON.getStatus().equals(school.getScAppActive())&&Status.ON.getStatus().equals(school.getScFilesendActive())&&(Status.APPSTATUS_NULL.getStatus().equals(userStatus.getAppStatus()) || Status.APPSTATUS_NO.getStatus().equals(userStatus.getAppStatus()) || Status.APPSTATUS_NOTIME.getStatus().equals(userStatus.getAppStatus())))fileedit=true;
%>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="index.jsp">首页</a></li>
    <li><a href="#">材料填写</a></li>
    </ul>
    </div>
   <div class='info'>
 		<div id="show"></div>  
  		 补充信息确认状态：<%=userStatus.getAppStatus() %>，佐证材料状态：<%=userStatus.getFileStatus() %>
 	<%
 	
 	if(!Status.ON.getStatus().equals(school.getScAppActive())){
 		out.println("。<input id='qrbutton' type='button' value='已经截止' class='btndisable' style='margin:10px;'/>");
    } else if(Status.APPSTATUS_YES.getStatus().equals(userStatus.getAppStatus())) {
   	    out.println("。<input id='qrbutton' type='button' value='本人已确认信息' class='btndisable' style='margin:10px;'/>");
   	} else if(Status.APPSTATUS_NULL.getStatus().equals(userStatus.getAppStatus())||Status.APPSTATUS_NO.getStatus().equals(userStatus.getAppStatus())||Status.APPSTATUS_NOTIME.getStatus().equals(userStatus.getAppStatus()) ) {
   	    out.println("。如果所有附加信息及佐证材料已经补充完整，请点击右侧‘确认信息完整’结束填报！<input id='qrbutton' name='qrbutton' type='button' onclick='send()' value='确认信息完整' class='btn btn-primary' style='margin:10px;display:none'/>");
   	} 
   %>
   
   </div>
   
   
   <%if(!Status.HIDDEN.getStatus().equals(school.getScExvalueActive())){ %>
   <div class="formbody">
	    <div class="formtitle"><span>附加信息填写</span></div>
	    <form id="ff1" name="add" role="form" class="form-horizontal" action="" method="post">  
		    <ul class="forminfo">
		    <li <%if(!Status.YES.getStatus().equals(comanager.getDataByCoEn("column1").getAddPermit()))out.print("style='display:none'"); %>><label><%=comanager.getDataByCoEn("column1").getCoCn() %><b>*</b></label><select id="column1" name="column1" type="text" class="dfinput" required/><option value="<%=html.getInputString(exv.getColumn1()) %>" selected><%=html.getInputString(exv.getColumn1()) %></option></select><i id="column1label"></i></li>
		    <li <%if(!Status.YES.getStatus().equals(comanager.getDataByCoEn("column2").getAddPermit()))out.print("style='display:none'"); %>><label><%=comanager.getDataByCoEn("column2").getCoCn() %><b>*</b></label><select id="column2" name="column2" type="text" class="dfinput" required/><option value="<%=html.getInputString(exv.getColumn2()) %>" selected><%=html.getInputString(exv.getColumn2()) %></option></select><i id="column2label"></i></li>
		    <li <%if(!Status.YES.getStatus().equals(comanager.getDataByCoEn("column3").getAddPermit()))out.print("style='display:none'"); %>><label><%=comanager.getDataByCoEn("column3").getCoCn() %><b>*</b></label><select id="column3" name="column3" type="text" class="dfinput" required/><option value="<%=html.getInputString(exv.getColumn3()) %>" selected><%=html.getInputString(exv.getColumn3()) %></option></select><i id="column3label"></i></li>
		    <li <%if(!Status.YES.getStatus().equals(comanager.getDataByCoEn("column4").getAddPermit()))out.print("style='display:none'"); %>><label><%=comanager.getDataByCoEn("column4").getCoCn() %><b>*</b></label><select id="column4" name="column4" type="text" class="dfinput" required/><option value="<%=html.getInputString(exv.getColumn4()) %>" selected><%=html.getInputString(exv.getColumn4()) %></option></select><i id="column4label"></i></li>
		    <li <%if(!Status.YES.getStatus().equals(comanager.getDataByCoEn("column5").getAddPermit()))out.print("style='display:none'"); %>><label><%=comanager.getDataByCoEn("column5").getCoCn() %><b>*</b></label><select id="column5" name="column5" type="text" class="dfinput" required/><option value="<%=html.getInputString(exv.getColumn5()) %>" selected><%=html.getInputString(exv.getColumn5()) %></option></select><i id="column5label"></i></li>
		    <li><label>&nbsp;</label>
		    <input id="exvId" name="exvId" type="text" class="dfinput" value="<%if(null==exv.getExvId()){out.print("");}else{out.print(exv.getExvId());}; %>"  style="display:none;"/>
		    <input id="scCode" name="scCode" type="text" class="dfinput" value="<%=school.getScCode()%>"  style="display:none;"/>
			<input id="zsUser.usId" name="zsUser.usId" type="text" class="dfinput" value="<%=exv.getZsUser().getUsId() %>"  style="display:none;"/>
			<%
			if(!Status.ON.getStatus().equals(school.getScExvalueActive())||Status.OFF.getStatus().equals(school.getScAppActive())) {
			%>
			<button type="submit" class="btndisable" disabled>已截止</button>
			<%} else if(Status.APPSTATUS_NULL.getStatus().equals(userStatus.getAppStatus())||Status.APPSTATUS_NO.getStatus().equals(userStatus.getAppStatus())||Status.APPSTATUS_NOTIME.getStatus().equals(userStatus.getAppStatus()) ) {
			%>
			<button type="submit" class="btn btn-primary btn-sm">保存</button>
			<%} else {%>
			<button type="submit" class="btndisable" disabled>已确认</button>
			<%} %>
		    </ul>
	    </form>
    </div>
    <%} %>
    
   	
   	
   	
   	<div class="formbody">
   	<div class="formtitle"><span>选考成绩</span></div>
   	<ul class="forminfo">
    <li><label>选考科目<b>*</b></label>
    <div class="vocation">
    <label><input type="checkbox" name="xyXkIss" id="xyXkIss" value="政治" <%if(userinfo.getInXkkm()!=null&&userinfo.getInXkkm().contains("政治"))out.print("checked=true"); %> disabled>政治 </label>
    <label><input type="checkbox" name="xyXkIss" id="xyXkIss" value="历史" <%if(userinfo.getInXkkm()!=null&&userinfo.getInXkkm().contains("历史"))out.print("checked=true"); %> disabled>历史 </label>
    <label><input type="checkbox" name="xyXkIss" id="xyXkIss" value="地理" <%if(userinfo.getInXkkm()!=null&&userinfo.getInXkkm().contains("地理"))out.print("checked=true"); %> disabled>地理 </label>
    <label><input type="checkbox" name="xyXkIss" id="xyXkIss" value="物理" <%if(userinfo.getInXkkm()!=null&&userinfo.getInXkkm().contains("物理"))out.print("checked=true"); %> disabled>物理 </label>
    <label><input type="checkbox" name="xyXkIss" id="xyXkIss" value="化学" <%if(userinfo.getInXkkm()!=null&&userinfo.getInXkkm().contains("化学"))out.print("checked=true"); %> disabled>化学 </label>
    <label><input type="checkbox" name="xyXkIss" id="xyXkIss" value="生物" <%if(userinfo.getInXkkm()!=null&&userinfo.getInXkkm().contains("生物"))out.print("checked=true"); %> disabled>生物 </label>
    <label><input type="checkbox" name="xyXkIss" id="xyXkIss" value="技术" <%if(userinfo.getInXkkm()!=null&&userinfo.getInXkkm().contains("技术"))out.print("checked=true"); %> disabled>技术 </label>
    </div>
    <i></i></li>
    </ul>
    
    <form id="ff5" name="add" role="form" class="form-horizontal" action="" method="post">
	    <ul class="forminfo" style="clear:both;">
	    <li><label>科目成绩<b>*</b></label>
	    <div class="vocation">
	    政治：<input disabled="disabled" id="xyXkZz" name="xyXkZz" type="text" class="smfinput" value="<%=html.getInputString(xy.getXyXkZz()) %>" data-rule-decimal100z="true" data-msg-decimal100z="请输入0-100整数" />&nbsp;
	    历史：<input disabled="disabled" id="xyXkLs" name="xyXkLs" type="text" class="smfinput" value="<%=html.getInputString(xy.getXyXkLs()) %>" data-rule-decimal100z="true" data-msg-decimal100z="请输入0-100整数" />&nbsp;
	    地理：<input disabled="disabled" id="xyXkDl" name="xyXkDl" type="text" class="smfinput" value="<%=html.getInputString(xy.getXyXkDl()) %>" data-rule-decimal100z="true" data-msg-decimal100z="请输入0-100整数" />&nbsp;
	    物理：<input disabled="disabled" id="xyXkWl" name="xyXkWl" type="text" class="smfinput" value="<%=html.getInputString(xy.getXyXkWl()) %>" data-rule-decimal100z="true" data-msg-decimal100z="请输入0-100整数" />&nbsp;
	    化学：<input disabled="disabled" id="xyXkHx" name="xyXkHx" type="text" class="smfinput" value="<%=html.getInputString(xy.getXyXkHx()) %>" data-rule-decimal100z="true" data-msg-decimal100z="请输入0-100整数" />&nbsp;
	    生物：<input disabled="disabled" id="xyXkSw" name="xyXkSw" type="text" class="smfinput" value="<%=html.getInputString(xy.getXyXkSw()) %>" data-rule-decimal100z="true" data-msg-decimal100z="请输入0-100整数" />&nbsp;
	    技术：<input disabled="disabled" id="xyXkJs" name="xyXkJs" type="text" class="smfinput" value="<%=html.getInputString(xy.getXyXkJs()) %>" data-rule-decimal100z="true" data-msg-decimal100z="请输入0-100整数" />&nbsp;
	    </div>
	    <i></i></li>
		
		<li class="clear"><label>外语首考成绩<b>*</b></label><input id="xySw" name="xySw" type="text" class="dfinput" required value="<%=html.getInputString(xy.getXySw()) %>"  data-rule-decimal150z="true" data-msg-decimal150z="请输入0-150整数" /><i></i></li>
		<li class="clear"><label>&nbsp;</label>
	    <input id="xyXkIs" name="xyXkIs" type="text" class="dfinput" value="<%=xy.getXyXkIs() %>"  style="display:none;"/>
	    <input id="xyId" name="xyId" type="text" class="dfinput" value="<%if(null==xy.getXyId()){out.print("");}else{out.print(xy.getXyId());}; %>" style="display:none;"/>
		<input id="zsUser.usId" name="zsUser.usId" type="text" class="dfinput" value="<%=xy.getZsUser().getUsId() %>"  style="display:none;"/>
		<%if(Status.APPSTATUS_NULL.getStatus().equals(userStatus.getAppStatus()) || Status.APPSTATUS_NO.getStatus().equals(userStatus.getAppStatus()) || Status.APPSTATUS_NOTIME.getStatus().equals(userStatus.getAppStatus())){ %>
		<button type="submit" class="btn btn-primary btn-sm">保存</button>
		<%} else {%>
		<button type="submit" class="btndisable" disabled>已确认</button>
		<%} %>
		</li>
		</ul>
   	</form>
   	</div>
   	
   	
   	
   	<!-- 必需材料上次（自我陈述）开始 -->
   	<%if(!Status.HIDDEN.getStatus().equals(school.getScFilesendActive())){ %> 
	<div class="formbody">
    <div class="formtitle"><span>材料上传</span></div>
    	<%
    		List fnlist = anconfig.getConfigsInfoByClass("上传材料名称(必需)");
	    	List fnlist2 = anconfig.getConfigsInfoByClass("上传材料名称(可选)");
		    System.out.println(fnlist.size());
		    for (int i=0; i<fnlist.size(); i++){
		    	AnConfig fn = (AnConfig)fnlist.get(i);
		    	String fname = fn.getCoValue();
		    	file.setZsUser(user);
		    	file.setFiName(fname);	
		    	file.setFiType("sbcl");
		    	List flist = fmanager.getDataByInstance(1,100,"fiId","asc",file).getObjects();
		        //flist = fmanager.findByExample(file);
		        
		     %>
    		<table class="imgtable">
		    <thead>
		    <tr>
		    <th class="imgtableth1"><%=fn.getCoValue() %><font color='red'>*</font></th>
		    <th class="imgtableth1">材料缩略图</th>		       
		    <th class="imgtableth2">
		    <%if(fileedit){%> 
		    <a id="a<%=i %>" href="#" onclick="upload('<%=fn.getCoValue() %>','sbcl')"><img src="images/iadd.png" style="margin:5px;vertical-align: middle;"/>上传材料</a>
		    <%} %>
		   </th>
		    </tr>
		    </thead>
		    <tbody>		      
		      <%
		      
		    	if (flist.size()>0) {
		    		for (int k = 0; k < flist.size(); k++) { 
		    			ZsFile fi = (ZsFile)flist.get(k);
		    			String fileName = fname+"材料"+(k+1);
		    			String imgurl = fmanager.getFileURL(filelocalview, fi.getFiFile(), user.getUsIdcard(), false);
		    			out.print("<tr><td><a href='"+imgurl+"' target='_blank'>"+fileName+" "+fi.getAddTime()+"</a></td>");
		    			out.print("<td><a href='"+imgurl+"' target='_blank'><img src='"+imgurl+"' height='50' ></a></td><td>");
		    			if(fileedit){
		    				out.println("<a href='#'  onclick=filedelete('"+fi.getFiId()+"')>删除</a>");
		    			}
		    			out.print("</td></tr>");
		    		}
		    	} else {
		    		out.print("<tr style='background:#ffe6e6;'><td style='color:red'>尚未上传</td><td></td><td></td></tr>");
		    	}
		    %>
		     </tbody>
		    </table>
		    <br>
    		<%}
    		for (int i=0; i<fnlist2.size(); i++){
		    	AnConfig fn = (AnConfig)fnlist2.get(i);
		    	String fname = fn.getCoValue();
		    	file.setZsUser(user);
		    	file.setFiName(fname);	
		    	file.setFiType("sbcl");
		    	List flist = fmanager.getDataByInstance(1,100,"fiId","asc",file).getObjects();
		    	String tablecss = "";
		    	
		    	if (fname.contains("特殊才能")) {
		    		if(exv.getColumn1()!=null && exv.getColumn1().contains("（二）类")) {
		    			if (flist.size()==0) {
		    				send = false;
		    			}		    			
		    		} else {
		    			tablecss="display:none;";
		    		}
		    	}
		    	System.out.println("######" + exv.getColumn1()+" "+fname+" "+flist.size() + send+ tablecss);
		     %>
		    <table class="imgtable" style="<%=tablecss%>">
		    <thead>
		    <tr>
		    <th class="imgtableth1"><%=fn.getCoValue() %></th>		
		    <th class="imgtableth1">材料缩略图</th>		              
		    <th class="imgtableth2">
		    <%if(fileedit){ %>
		    <a id="aa<%=i %>" href="#" onclick="upload('<%=fn.getCoValue() %>','sbcl')" ><img src="images/iadd.png" style="margin:5px;vertical-align: middle;"/>上传材料</a>
		    <%} %>
		    </th>
		    </tr>
		    </thead>
		    <tbody>		      
		      <%	
		    	if (flist.size()>0) {
		    		for (int k = 0; k < flist.size(); k++) { 
		    			ZsFile fi = (ZsFile)flist.get(k);	
		    			String fileName = fname+"材料"+(k+1);	     	    				    		      				          
		    			url = fmanager.getFileURL(filelocalview, fi.getFiFile(), user.getUsIdcard(), false);
		    			out.print("<tr><td><a href='"+url+"' target='_blank'>"+fileName+" "+fi.getAddTime()+"</a></td>");
		    			out.print("<td><a href='"+url+"' target='_blank'><img src='"+url+"' height='50' ></a></td><td>");
		    			if(fileedit){
		    				out.println("<a href='#'  onclick=filedelete('"+fi.getFiId()+"')>删除</a>");
		    			}
		    			out.print("</td></tr>");
		    		}
		    	} else {
		    		out.print("<tr style='background:#ffe6e6;'><td>尚未上传</td><td></td><td></td></tr>");
		    	}
		    %>
		      
		     </tbody>
		    </table>
		     <br>
    	<%} %>
    </div>
    <%} %>
   	<!-- 必需材料上次（自我陈述）结束 -->
   	
   	<div style="margin:10px;"><%out.print(anconfig.getSingleConfigInfoByName("专项类别填写需知")); %></div>
   	<!-- 专项材料填写开始 -->
   	<%if(!Status.HIDDEN.getStatus().equals(school.getScZxlbActive())){ %>
    <div id="ossfile"></div>						
	<pre id="console"></pre>
    <div class="formbody">    
    	<div class="formtitle"><span>专项信息填写</span></div>
	    <div class="rightinfo">
		    <table class="imgtable">
		    <thead>
		    <tr>
			<th>序号</th>
		    <th>专项类别</th>
		    <th>奖项名称</th>
		    <th>奖项级别</th>
		    <th>获奖时间</th>
		    <th>组织单位</th>
		    <th>获奖等级</th>
		    <th>操作</th>
		    </tr>
		    </thead>
		    <tbody>
		    <%
		    List zlist = new ArrayList();
		    if (user!=null) {
		    	zxlb.setZsUser(user);
		    	zlist = zmanager.getDataByInstance(1,100,"zxId","asc",zxlb).getObjects();
		    }
		    if(request.getParameter("zxId")!=null) {
		    	zxlb = zmanager.getData(request.getParameter("zxId"));					
		    }	
		    for (int i=0; i<zlist.size(); i++){
		    	ZsZxlb obj = (ZsZxlb)zlist.get(i);
		    	zxstring.append(obj.getZxType()+"|"+obj.getZxName()+"|"+obj.getZxJb()+";");
		    	if(!"获奖情况".equals(obj.getZxType())){
		    		int no = i+1;
		     %>
		    <tr style="background:#F8FBFC;">		    
		    <td><%=no %></td>
		    <td><%=obj.getZxType() %></td>
		    <td><%=obj.getZxName() %></td>
		    <td><%=obj.getZxJb() %></td>
		    <td><%=obj.getZxDate() %></td>
		    <td><%=obj.getZxOrg() %></td>
		    <td><%=obj.getZxDj() %></td>
		    <td>
		    <%if(zxlbedit){ %>
		    <a href="zs_filesend_zjut.jsp?zxId=<%=obj.getZxId() %>&<%=url %>" class="tablelink">编辑</a>　
		    <a href="#" onclick="javascript:deleteZxlbobj('<%=obj.getZxId() %>');">删除</a>
		    <a id="a<%=i %>" href="#" onclick="upload('<%=obj.getZxId() %>','zxlb')"><img src="images/iadd.png" style="margin:5px;vertical-align: middle;"/>上传佐证材料</a>
		    <%} %>
		    </td>
		    </tr>
		    <tr><td colspan="8" style="background:#fff;border-top:solid 1px #eee;border-bottom:solid 3px #ccc">
		    <%
		    String fname = obj.getZxName();
	    	file.setZsUser(user);
			file.setFiName(obj.getZxId()+"");	
			file.setFiType("zxlb");
			List flist = fmanager.findByExample(file);
	    	if (flist.size()>0) {
	    		for (int k = 0; k < flist.size(); k++) { 
	    			ZsFile fi = (ZsFile)flist.get(k);
	    			String fileName = fname+"材料"+(k+1);	          				          
	    			String imgurl = fmanager.getFileURL(filelocalview, fi.getFiFile(), user.getUsIdcard(), false);
	    			out.print("<div class='filediv'><div class='file'><a href='"+imgurl+"' target='_blank'><img src='"+imgurl+"' height='80' style='margin:2px'></a></div>");
	    			//out.print("<div>上传时间："+fi.getAddTime()+"");
	    			if(zxlbedit){
	    				out.println("<div><a href='#'  onclick=filedelete('"+fi.getFiId()+"')>删除</a></div>");
	    			}
	    			out.print("</div>");
	    		}
	    	} else {
	    		out.print("<div style='background:#ffe6e6;'><font color=red>佐证材料尚未上传</font></div>");
	    	}
		    %></td>
		    </tr>
		    <%
		    	} 
		    }%>
		    </tbody>
		    </table>
		    <br>
	    </div>
	    
	    <%if(zxlbedit){ //新增专项%>
		<form id="ff2" name="add" role="form" class="form-horizontal" action="" method="post">
			<table id="zxtable" class="imgtable" style="width:99%;margin:0 auto;">
		    <thead>
		    <tr>
		    <th>专项类别</th>
		    <th>奖项名称</th>
		    <th>奖项级别</th>
		    <th>获奖时间</th>
		    <th>组织单位</th>
		    <th>获奖等级</th>
		    <th>新增/编辑</th>
		    </tr>
		    </thead>
		    <tbody>
		    <tr>
		    <td style="text-indent: 5px;">							    
		    <input id="zxType" name="zxType" type="text" class="dfinput" value="<%=html.getInputString(zxlb.getZxType()) %>" required style="width: 100px" readonly="true" onclick="oTwoPopup.show();"/>
		    </td>
		    <td style="text-indent: 5px;"><input id="zxName" name="zxName" type="text" class="dfinput" value="<%=html.getInputString(zxlb.getZxName()) %>" required style="width: 100px" onclick="oTwoPopup.show();"/></td>
		    <td style="text-indent: 5px;"><input id="zxJb" name="zxJb" type="text" class="dfinput" value="<%=html.getInputString(zxlb.getZxJb()) %>" required style="width: 100px"/></td>
		    <td style="text-indent: 5px;"><input id="zxDate" name="zxDate" type="text" class="dfinput" value="<%=html.getInputString(zxlb.getZxDate()) %>" required style="width: 100px"/></td>
		    <td style="text-indent: 5px;"><input id="zxOrg" name="zxOrg" type="text" class="dfinput" value="<%=html.getInputString(zxlb.getZxOrg()) %>" required style="width: 160px"/></td>
		    <td style="text-indent: 5px;"><input id="zxDj" name="zxDj" type="text" class="dfinput" value="<%=html.getInputString(zxlb.getZxDj()) %>" required style="width: 110px"/></td>
		    <td><div class="btns"><button type="submit" class="btn btn-primary btn-sm" style="float:right;margin:10px;">确认保存</button></div></td>
		    </tr>
		    </tbody>
		    </table>
		    <input name="zxFiles" type="text" id="zxFiles" value="<%=html.getInputString(zxlb.getZxFiles()) %>"  class="dfinput"  style="display:none;"/>  	
			<input id="zxId" name="zxId" type="text" class="dfinput" value="<%if(null==zxlb.getZxId()){out.print("");}else{out.print(zxlb.getZxId());}; %>" style="display:none;"/>
		    <input id="zsUser.usId" name="zsUser.usId" type="text" class="dfinput" value="<%=zxlb.getZsUser().getUsId()%>" style="display:none;"/>
			    <!--用来存放文件信息-->
	 	</form>
		<div class="my-popup two-popup" id="twoPopup" style="clear:both;display:none">
		  <div class="popup-content">
		    <p class="msg">专项类别选择</p><button id="closeBtn" style="float:right;">关闭</button>
		    <div class="btn-box">
		    <table width="800" id="zxtable">
		    <td>专项类别</td><td>奖项名称</td><td>选择</td>
		    <%
		    List jlist = anconfig.getConfigsInfoByClass("专项类别明细");
		    for (int i=0;i<jlist.size(); i++) {
		    	AnConfig c = (AnConfig)jlist.get(i);
		    	%>
		    	<tr onclick="addzx('<%=c.getCoName()%>','<%=c.getCoValue()%>')" onmouseover="this.bgColor='#ccc'" onmouseout="this.bgColor=''"><td><%=c.getCoName() %></td><td><%=c.getCoValue() %></td><td><a href="#" onclick ="addzx('<%=c.getCoName()%>','<%=c.getCoValue()%>')"/>选择</a></td></tr>
		    	<%
		    }
		    %>
		    </table>
		   </div>
		  </div>
		</div>	
		<%} //新增专项结束%>
    </div>
    <!-- 专项材料填写结束 -->
    
    
    
    <!-- 其他获奖填写结束 -->
    <div class="formbody">    
    	<div class="formtitle"><span>其他获奖填写</span></div>
	    <div class="rightinfo">
		    <table class="imgtable">	    
		    <thead>
		    <tr>
		    <th>奖项名称</th>
		    <th>奖项级别</th>
		    <th>获奖时间</th>
		    <th>组织单位</th>
		    <th>获奖等级</th>
		    <th>操作</th>
		    </tr>
		    </thead>
		    <tbody>
		    <%
		    ZsHjqk hjqk = new ZsHjqk();
		    List jlist = new ArrayList();
		    if (user!=null) {
		    	hjqk.setZsUser(user);
		    	jlist = jmanager.getDataByInstance(1,100,"hjId","asc",hjqk).getObjects();
		    }
		    if(request.getParameter("hjId")!=null) {
		    	hjqk = jmanager.getData(request.getParameter("hjId"));					
		    }	
		    for (int i=0; i<jlist.size(); i++){
		    	ZsHjqk obj = (ZsHjqk)jlist.get(i);
		     %>
		    <tr>
		    <td><%=obj.getHjName() %></td>
		    <td><%=obj.getHjJb() %></td>
		    <td><%=obj.getHjDate() %></td>
		    <td><%=obj.getHjOrg() %></td>
		    <td><%=obj.getHjDj() %></td>
		    <td>
		    <%if(zxlbedit){ %>
			<a href="zs_filesend_zjut.jsp?hjId=<%=obj.getHjId() %><%=url %>" class="tablelink">编辑</a>　
		    <a href="#" onclick="javascript:deleteHjqkobj('<%=obj.getHjId() %>');">删除</a>
		    <a id="b<%=i %>" href="#" onclick="upload('<%=obj.getHjId() %>','hjqk')"><img src="images/iadd.png" style="margin:5px;vertical-align: middle;"/>上传佐证材料</a>
		    <%} %>
		    </td>
		    </tr>
		    <tr><td colspan="8" style="background:#fff;border-top:solid 1px #eee;border-bottom:solid 3px #ccc">
		    <%
		    String fname = obj.getHjName();
	    	file.setZsUser(user);
			file.setFiName(obj.getHjId()+"");	
			file.setFiType("hjqk");
			List flist = fmanager.findByExample(file);
	    	if (flist.size()>0) {
	    		for (int k = 0; k < flist.size(); k++) { 
	    			ZsFile fi = (ZsFile)flist.get(k);
	    			String fileName = fname+"材料"+(k+1);	          				          
	    			String imgurl = fmanager.getFileURL(filelocalview, fi.getFiFile(), user.getUsIdcard(), false);
	    			out.print("<div class='filediv'><div class='file'><a href='"+imgurl+"' target='_blank'><img src='"+imgurl+"' height='80' style='margin:2px'></a></div>");
	    			//out.print("<div>上传时间："+fi.getAddTime()+"");
	    			if(zxlbedit){
	    				out.println("<div><a href='#'  onclick=filedelete('"+fi.getFiId()+"')>删除</a></div>");
	    			}
	    			out.print("</div>");
	    		}
	    	} else {
	    		out.print("<div style='background:#ffe6e6;'><font color=red>佐证材料尚未上传</font></div>");
	    	}
		    %></td>
		    </tr>
		    <%} %>
		    </tbody>
		    </table>
		    <br>
			<%if(zxlbedit){ %>
			<form id="ff3" name="add" role="form" class="form-horizontal" action="" method="post">
					<table id="zxtable" class="imgtable" style="width:100%;margin:0 auto;">
				    <thead>
				    <tr>
				    <th>奖项名称</th>
				    <th>奖项级别</th>
				    <th>获奖时间</th>
				    <th>组织单位</th>
				    <th>获奖等级</th>	
				    <th>新增/编辑</th>	
				    </tr>
				    </thead>
				    <tbody>
				    <tr>
				    <td style="text-indent: 5px;"><input id="hjName" name="hjName" type="text" class="dfinput" value="<%=html.getInputString(hjqk.getHjName()) %>" required style="width: 100px"/></td>
				    <td style="text-indent: 5px;"><input id="hjJb" name="hjJb" type="text" class="dfinput" value="<%=html.getInputString(hjqk.getHjJb()) %>" required style="width: 100px"/></td>
				    <td style="text-indent: 5px;"><input id="hjDate" name="hjDate" type="text" class="dfinput" value="<%=html.getInputString(hjqk.getHjDate()) %>" required style="width: 100px"/></td>
				    <td style="text-indent: 5px;"><input id="hjOrg" name="hjOrg" type="text" class="dfinput" value="<%=html.getInputString(hjqk.getHjOrg()) %>" required style="width: 160px"/></td>
				    <td style="text-indent: 5px;"><input id="hjDj" name="hjDj" type="text" class="dfinput" value="<%=html.getInputString(hjqk.getHjDj()) %>" required style="width: 110px"/></td>
				    <td><div class="btns"><button type="submit" class="btn btn-primary btn-sm" style="float:right;margin:10px;">确认保存</button></div></td>
				    </tr>
				    </tbody>
				    </table>
				    <input name="hjFiles" type="text" id="hjFiles" value="<%=html.getInputString(hjqk.getHjFiles()) %>"  class="dfinput"  style="display:none;"/>  	
					<input id="hjId" name="hjId" type="text" class="dfinput" value="<%if(null==hjqk.getHjId()){out.print("");}else{out.print(hjqk.getHjId());}; %>" style="display:none;"/>
				    <input id="zsUser.usId" name="zsUser.usId" type="text" class="dfinput" value="<%=hjqk.getZsUser().getUsId()%>" style="display:none;"/> 
		 	</form>
		 	<%} %>  
	    </div>    
    </div>  
    <!-- 其他获奖填写结束 -->
    
    <!-- 社会活动填写开始 -->
    <div class="formbody">    
    	<div class="formtitle"><span>社会活动填写</span></div>
	    <div class="rightinfo">
		    <table class="imgtable">
		    <thead>
		    <tr>
		    <th>活动名称</th>
		    <th>担任角色</th>
		    <th>活动时间</th>
		    <th>组织单位</th>
		    <th>操作</th>
		    </tr>
		    </thead>
		    
		    <tbody>
		    <%
		    ZsShhd shhd = new ZsShhd();
		    List hlist = new ArrayList();
		    if (user!=null) {
		    	shhd.setZsUser(user);
		    	hlist = hmanager.getDataByInstance(1,100,"hdId","asc",shhd).getObjects();
		    }
		    if(request.getParameter("hdId")!=null) {
		    	shhd = hmanager.getData(request.getParameter("hdId"));				
		    }	
		    for (int i=0; i<hlist.size(); i++){
		    	ZsShhd obj = (ZsShhd)hlist.get(i);
		     %>
		    <tr>
		    <td><%=obj.getHdName() %></td>
		    <td><%=obj.getHdJs() %></td>
		    <td><%=obj.getHdDateStart() %>至<%=obj.getHdDateEnd() %></td>
		    <td><%=obj.getHdOrg() %></td>
		    <td>
		    <%if(zxlbedit){ %>
		    <a href="zs_filesend_zjut.jsp?hdId=<%=obj.getHdId()%><%=url %>" class="tablelink">编辑</a>　
			<a href="#" onclick="javascript:deleteShhdobj('<%=obj.getHdId() %>');">删除</a>
		    <a id="c<%=i %>" href="#" onclick="upload('<%=obj.getHdId() %>','shhd')"><img src="images/iadd.png" style="margin:5px;vertical-align: middle;"/>上传佐证材料</a>
		    <%} %>
		    </td>
		    </tr>
		    <tr><td colspan="8" style="background:#fff;border-top:solid 1px #eee;border-bottom:solid 3px #ccc">
		    <%
		    String fname = obj.getHdName();
	    	file.setZsUser(user);
			file.setFiName(obj.getHdId()+"");	
			file.setFiType("shhd");
			List flist = fmanager.findByExample(file);
	    	if (flist.size()>0) {
	    		for (int k = 0; k < flist.size(); k++) { 
	    			ZsFile fi = (ZsFile)flist.get(k);
	    			String fileName = fname+"材料"+(k+1);	          				          
	    			String imgurl = fmanager.getFileURL(filelocalview, fi.getFiFile(), user.getUsIdcard(), false);
	    			out.print("<div class='filediv'><div class='file'><a href='"+imgurl+"' target='_blank'><img src='"+imgurl+"' height='80' style='margin:2px'></a></div>");
	    			//out.print("<div>上传时间："+fi.getAddTime()+"");
	    			if(zxlbedit){
	    				out.println("<div><a href='#'  onclick=filedelete('"+fi.getFiId()+"')>删除</a></div>");
	    			}
	    			out.print("</div>");
	    		}
	    	} else {
	    		out.print("<div style='background:#ffe6e6;'><font color=red>佐证材料尚未上传</font></div>");
	    	}
		    %></td>
		    </tr>
		    <%} %>
		    
		    </tbody>
		    </table>
	    	<br>
		     
		    <%if(zxlbedit){ %>		
		    <form id="ff4" name="add" role="form" class="form-horizontal" action="" method="post">
		    <table id="hdtable" class="imgtable" >
		    <thead>
		    <tr>
		    <th>活动名称</th>
		    <th>担任角色</th>
		    <th>活动开始时间</th>
		    <th>活动结束时间</th>
		    <th>组织单位</th>
		    <th>新增/编辑</th>
		    </tr>
		    </thead>
		    <tbody>
		    <tr>
		    <td style="text-indent: 5px;"><input id="hdName" name="hdName" type="text" class="dfinput" value="<%=html.getInputString(shhd.getHdName()) %>" required style="width: 100px"/></td>
		    <td style="text-indent: 5px;"><input id="hdJs" name="hdJs" type="text" class="dfinput" value="<%=html.getInputString(shhd.getHdJs()) %>" style="width: 100px"/></td>
		    <td style="text-indent: 5px;"><input id="hdDateStart" name="hdDateStart" type="text" class="dfinput" value="<%=html.getInputString(shhd.getHdDateStart()) %>" style="width: 100px"/></td>
		    <td style="text-indent: 5px;"><input id="hdDateEnd" name="hdDateEnd" type="text" class="dfinput" value="<%=html.getInputString(shhd.getHdDateEnd()) %>" style="width: 100px"/></td>
		    <td style="text-indent: 5px;"><input id="hdOrg" name="hdOrg" type="text" class="dfinput" value="<%=html.getInputString(shhd.getHdOrg()) %>" required style="width: 200px"/></td>
		    <td><div class="btns"><button type="submit" class="btn btn-primary btn-sm" style="float:right;margin:10px;">确认保存</button></div></td>
		    </tr>
		    </tbody>
		    </table>
				<input id="hdId" name="hdId" type="text" class="dfinput" value="<%if(null==shhd.getHdId()){out.print("");}else{out.print(shhd.getHdId());}; %>" style="display:none;"/>
		    	<input id="zsUser.usId" name="zsUser.usId" type="text" class="dfinput" value="<%=shhd.getZsUser().getUsId()%>" style="display:none;"/>
				<input name="hdFiles" type="text" id="hdFiles" value="<%=html.getInputString(shhd.getHdFiles()) %>"  class="dfinput"  style="display:none;"/>  	
				    <!--用来存放文件信息-->
		    </form>
		    <%} %>
	    </div>    
    </div>
    <!-- 社会活动填写结束 -->
    
    
	<form id="ffile" name="add" role="form" class="form-horizontal" action="" method="post"  style="display:none;">
		<div id="container" style="width:96%;margin:0 auto;">
			<table id="zxtable" class="imgtable" style="width:100%;margin:0 auto;">
		    <thead>
		    <tr>
		    <th>材料名称</th>							    
		    <th>佐证材料</th>
		    </tr>
		    </thead>
		    <tbody>
		    <tr>
		    <td style="text-indent: 5px;"><input id="fiName" name="fiName" type="text" class="dfinput" value="" required style="display:none;"/></td>
		    <td style="text-indent: 5px;">
		    <a href='#' target='_blank'>材料</a>
		    </td>
		    </tr>
		    </tbody>
		    </table>
		    <input name="fiFile" type="text" id="fiFile" value=""  class="dfinput"  style="display:none;"/>  	
			<input id="fiId" name="fiId" type="text" class="dfinput" value="" style="display:none;"/>
		    <input id="zsUser.usId" name="zsUser.usId" type="text" class="dfinput" value="<%=user.getUsId()%>" style="display:none;"/>
		    <input id="fiType" name="fiType" type="text" class="dfinput" value="sbcl" style="display:none;"/>
			<div id="uploaderfile" class="wu-example">
			    <!--用来存放文件信息-->
			    佐证材料：	
			    <div class="btns">								 
					<a id="postfiles" href="javascript:void(0);" class="btn btn-default" style="float:right;margin:10px;">确认保存</a>
				    <a id="selectfiles" href="javascript:void(0);" class="btn" style="float:right;margin:10px;">选择文件</a>
			    </div>
			</div>
			<script type="text/javascript" src="lib/crypto1/crypto/crypto.js"></script>
			<script type="text/javascript" src="lib/crypto1/hmac/hmac.js"></script>
			<script type="text/javascript" src="lib/crypto1/sha1/sha1.js"></script>
			<script type="text/javascript" src="lib/base64.js"></script>
			<script type="text/javascript" src="lib/plupload-2.1.2/js/plupload.full.min.js"></script>
			<script type="text/javascript" src="<%=request.getContextPath() %>/plugins/webupload/scripts/upload/ossfileupload.js"></script>   
		</div> 
 	</form>	
    <%} %>
	
					
					
					
					
	   
	
		    			
	

     			

	    			

    
<script src="js/laydate.dev.js" type="text/javascript"></script>
<script type="text/javascript">
//////////////////////////////////////////
var closeBtn = document.getElementById('closeBtn');
var oTwoPopup = new MyPopup('twoPopup', {
  param: {
    isfixed: false,	// 弹窗是否固定居中（默认true可以） 值：true、false
    bgclose: false,	// 可否通过点击背景关闭弹窗 （默认true可以） 值：true、false
    type: 'top',	// 弹窗出现的方式（默认none无动画） 值：none、opacity、top、right、bottom、left
    time: 400,		// 弹窗出现动画的时长（默认200ms）
    bgcolor: '#777',// 背景颜色（默认transparent）
    opacity: 0.2 	// 背景透明度（默认0）
  },
  show: function () {
	console.log("这是显示弹窗前调用的函数");
  },
  close: function () {
	console.log("这是默认的关闭弹窗前调用的函数");
  }
});
closeBtn.onclick = function () {
	oTwoPopup.close();
}
/////////////////////////////////////
laydate({
	elem: document.getElementById("zxDate")
});
laydate({
	elem: document.getElementById("hjDate")
});
laydate({
	elem: document.getElementById("hdDateStart")
});
laydate({
	elem: document.getElementById("hdDateEnd")
});
function addzx(name,value) {
	$("#zxType").val(name);
	$("#zxName").val(value);
	oTwoPopup.close();
}
</script>		    			
<script src="../plugins/assets/plugins/jquery-validation-1.14.0/dist/jquery.validate.js" type="text/javascript"></script>
<script src="../plugins/assets/plugins/jquery-validation-1.14.0/dist/jquery.metadata.js" type="text/javascript"></script>
<script src="../plugins/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js" type="text/javascript" charset="UTF-8"></script>
<script src="../plugins/assets/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js" type="text/javascript"  charset="UTF-8"></script>
<script src="js/formvalidate.js" type="text/javascript"></script>
<script src="../admin/js/publicManager.js" type="text/javascript" charset="utf-8"></script> 
<script type="text/javascript">
	var json;
	var zxlb="<%=zxstring%>";

		var loactionurl = 'zs_filesend_zjut.jsp?<%=url%>';
		$(function(){
		    //jquery.validate
			$("#ff1").validate({
				submitHandler: function() {
					var jsonString = JSON.stringify(serializeToJSON('#ff1'));
					ajaxSubmitForm(jsonString, '../zsExValueSave.action?randnum='+Math.floor(Math.random()*1000000));
				}
			})
		})
		$(function(){
		    //jquery.validate
			$("#ff2").validate({
				submitHandler: function() {
					var jsonString = JSON.stringify(serializeToJSON('#ff2'));
					ajaxSubmitForm(jsonString, '../zsZxlbSave.action?randnum='+Math.floor(Math.random()*1000000));
				}
			})
		})
		$(function(){
		    //jquery.validate
			$("#ff3").validate({
				submitHandler: function() {
					var jsonString = JSON.stringify(serializeToJSON('#ff3'));
					ajaxSubmitForm(jsonString, '../zsHjqkSave.action?randnum='+Math.floor(Math.random()*1000000));
				}
			})
		})
		$(function(){
		    //jquery.validate
			$("#ff5").validate({
				submitHandler: function() {
					var jsonString = JSON.stringify(serializeToJSON('#ff5'));
					ajaxSubmitForm(jsonString, '../zsXySave.action?randnum='+Math.floor(Math.random()*1000000));
				}
			})
		})
		$('.imgtable tbody tr:odd').addClass('odd');
		$(function(){
		    //jquery.validate
			$("#ff4").validate({
				submitHandler: function() {
					var jsonString = JSON.stringify(serializeToJSON('#ff4'));
					ajaxSubmitForm(jsonString, '../zsShhdSave.action?randnum='+Math.floor(Math.random()*1000000));
				}
			})
		})
		$('.imgtable tbody tr:odd').addClass('odd');
		
		function deleteZxlbobj(zxId) {
			if (confirm("是否确认"))  { 
				$.get("../zsZxlbDelete.action?randnum="+Math.floor(Math.random()*1000000)+"&zxId="+zxId, function(data){
					if(data.flag=="success"){
						alert("删除成功！");
						window.location = loactionurl;
					}else{
						alert("删除失败！");
					}
				}); 
			}
		}
		function deleteHjqkobj(hjId) {
			if (confirm("是否确认"))  { 
				$.get("../zsHjqkDelete.action?randnum="+Math.floor(Math.random()*1000000)+"&hjId="+hjId, function(data){
					if(data.flag=="success"){
						alert("删除成功！");
						window.location = loactionurl;
					}else{
						alert("删除失败！");
					}
				}); 
			}
		}
		function deleteShhdobj(hdId) {
			if (confirm("是否确认"))  { 
				$.get("../zsShhdDelete.action?randnum="+Math.floor(Math.random()*1000000)+"&hdId="+hdId, function(data){
					if(data.flag=="success"){
						alert("删除成功！");
						window.location = loactionurl;
					}else{
						alert("删除失败！");
					}
				}); 
			}
		}
		
		function filedelete(fiId){
			//alert(fiId);
			$.ajax({
				    cache: false,
				    type: "POST",
				    url:"../zsFileDelete.action?fiId="+fiId+"&key=<%=MD5.toMD5(user.getUsId().toString())%>",
				    dataType:"json",
				    async: false,
				    error: function(request) {
				    	alert("删除有误");
				    },
				    success: function(data) {///成功跳转
				    	alert("删除成功");
					    window.location = 'zs_filesend_zjut.jsp?usId=<%=user.getUsId()%>'; ///当用ajax访问 时候成功的时候就自动的跳转过去
		            }
				});
			}	
		
		function upload(fi_name, fi_type){
			//alert(fi_name);
			 $("#fiName").val(fi_name);	
			 $("#fiType").val(fi_type);			
			document.getElementById("selectfiles").click();			  			
		}
		
		function ajaxSubmitForm(jsonString, updateAction) {
			//console.log(jsonString);
			$.ajax({
		    	cache: false,
		    	type: "POST",
		        url:updateAction,
		        data:{rowstr:jsonString},// 你的formid
		        async: false,
		        error: function(request) {
		        	alert("保存有误");
		        },
		        success: function(data) {
		        	alert("保存成功");		            
		            if ("undefined" != typeof loactionurl) {
		            	window.location = loactionurl;
		            }
		        }
		    });
		}
		
		function submitFileFormAdvance() {//带对象form提交
			var jsonString = JSON.stringify(serializeToJSON('#ffile'));
			//alert(jsonString);
			ajaxSubmitFileForm(jsonString);
		}

		function ajaxSubmitFileForm(jsonString) {
			//console.log(jsonString);
			$.ajax({
		    	cache: false,
		    	type: "POST",
		        url:'../zsFileSave.action?randnum='+Math.floor(Math.random()*1000000),
		        data:{rowstr:jsonString},// 你的formid
		        async: false,
		        error: function(request) {
		        	alert("保存有误");
		        },
		        success: function(data) {
		        	alert("保存成功");		            
		            if ("undefined" != typeof loactionurl) {
		            	window.location = loactionurl;
		            }
		        }
		    });
		}
		
		function send() {
			<%if(send){%>
				if(confirm("注意！！！请您仔细检查补充信息与佐证材料是否完整。确认后，您的补充信息和佐证材料表将不能再修改与上传 ！！！您是否确认已经补充完整？")) {
					$.ajax({
				    	cache: false,
				    	type: "GET",
				        url:'../zsUserStatusAppPublic.action?usId=<%=user.getUsId()%>&key=<%=key%>&randnum='+Math.floor(Math.random()*1000000),
				        data:{},// 您的formid
				        async: false,
				        error: function(request) {
				        	alert("确认有误");
				        },
				        success: function(data) {
				        	//console.info(data);
				        	if(data.flag=="error"){
				        		alert("无法确认，信息不完整。");	
				        	} else {
				        		alert("确认成功！如后续发现材料有误，请在报考申请撤回中撤回材料确认。");		    
				        		window.location = 'index.jsp';
				        	}
				        }
				    });
				}		
			<%} else {%>
				alert("所需材料未上传完整，请上传完整再确认！");		  
			<%}%>
			
		} 
		
$(document).ready(function(e) {
	var checkBoxes = document.getElementsByName("xyXkIss");
	 for(var i=0;i<checkBoxes.length;i++){
		 console.info(checkBoxes[i].value+" "+checkBoxes[i].checked);
  			if(checkBoxes[i].checked){
  				if(checkBoxes[i].value=="政治"){ $("#xyXkZz").removeAttr("disabled");}
			else if(checkBoxes[i].value=="历史"){$("#xyXkLs").removeAttr("disabled");}
			else if(checkBoxes[i].value=="地理"){$("#xyXkDl").removeAttr("disabled");}
			else if(checkBoxes[i].value=="物理"){$("#xyXkWl").removeAttr("disabled");}
			else if(checkBoxes[i].value=="化学"){$("#xyXkHx").removeAttr("disabled");}
			else if(checkBoxes[i].value=="生物"){$("#xyXkSw").removeAttr("disabled");}
			else if(checkBoxes[i].value=="技术"){$("#xyXkJs").removeAttr("disabled");}
  			}
  		}
});
		</script>
<script type="text/javascript">
<%=school.getScExvJs() %>
var json;
var zxlb="<%=zxstring%>";
$(function(){
	$.get("../zsApplyView.action?usId=<%=user.getUsId()%>&randnum="+Math.floor(Math.random()*1000000), function(data) {
		json=data.rows;
		<%=school.getScSubJs() %>
	});
});
</script> 
		
<%
}%>		
</body>

</html>
